// ChangePWDDialog.h
//
// Gather user credentials for Logon.
//

#pragma once

#include "ginadll.h"

#include "WinLogonInterface.h"
#include "GinaModalDialog.h"
#include "resource.h"

#include "Setting.h"

class ChangePWDDialog : public GinaModalDialog {
public:
    ChangePWDDialog(IWinLogon* pWinLogon)
        : GinaModalDialog(pWinLogon, IDD_CHANGE_PWD)
		, uid(0)
		, oldPWD(0)
		, newPWD(0) 
		, newPWDConfirm(0) 
    {
    }
    
    ~ChangePWDDialog() {
        if (uid)   delete uid;
        if (oldPWD) delete oldPWD;
        if (newPWD) delete newPWD;
        if (newPWDConfirm) delete newPWDConfirm;
    }
    
    INT_PTR DialogProc(UINT msg, WPARAM wp, LPARAM lp);

    wchar_t* uid;
    wchar_t* oldPWD;
    wchar_t* newPWD;
    wchar_t* newPWDConfirm;
};
